import React, { Component } from "react";
//引入react-router-dom
import { withRouter } from "react-router-dom";
class Header extends Component {
    render() {
        return (
            <div className="header">
                <span
                    onClick={() => {
                        this.props.history.go(-1);
                    }}
                >
                    &lt;
                </span>
                <span>{this.props.title}</span>
                <span></span>
            </div>
        );
    }
}
export default withRouter(Header);
